package com.library.admin.modules.rolemenu.struct;

import org.mapstruct.*;
import com.library.admin.modules.rolemenu.entity.RoleMenu;
import com.library.admin.modules.rolemenu.vo.RoleMenuVO;
import com.library.admin.modules.rolemenu.bo.RoleMenuInsert;
import com.library.admin.modules.rolemenu.bo.RoleMenuUpdate;

/**
 * 角色和菜单关联表(RoleMenu)对象映射转换
 *
 * @author xyh
 * @since 2023-10-02
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface RoleMenuStructMapper {

    RoleMenu updateToRoleMenu(RoleMenuUpdate update);

    RoleMenu insertToRoleMenu(RoleMenuInsert insert);

    RoleMenuVO roleMenuToRoleMenuVO(RoleMenu roleMenu);

}

